
namespace ZR.Model.BaseManage
{
    /// <summary>
    /// plc信息
    /// </summary>
    [SugarTable("base_plc")]
    public class BasePlc
    {
        /// <summary>
        /// plc编号 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "plc_code")]
        public string PlcCode { get; set; }

        /// <summary>
        /// plc名称 
        /// </summary>
        [SugarColumn(ColumnName = "plc_name")]
        public string PlcName { get; set; }

        /// <summary>
        /// plc类型(1500,1200) 
        /// </summary>
        [SugarColumn(ColumnName = "plc_type")]
        public string PlcType { get; set; }

        /// <summary>
        /// ip 
        /// </summary>
        [SugarColumn(ColumnName = "plc_ip")]
        public string PlcIp { get; set; }

        /// <summary>
        /// 端口 
        /// </summary>
        [SugarColumn(ColumnName = "plc_port")]
        public int PlcPort { get; set; }

        /// <summary>
        /// 插槽 
        /// </summary>
        [SugarColumn(ColumnName = "plc_slot")]
        public string PlcSlot { get; set; }

        /// <summary>
        /// 机架 
        /// </summary>
        [SugarColumn(ColumnName = "plc_rack")]
        public string PlcRack { get; set; }

        /// <summary>
        /// 启用标志（0禁用1启用） 
        /// </summary>
        public int Enabled { get; set; }

        /// <summary>
        /// 连接状态（0未连接1已连接） 
        /// </summary>
        [SugarColumn(ColumnName = "conn_state")]
        public int ConnState { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

    }
}